const MetaCtrl = require("./meta.ctrl");
const checkUserInfo = require("../../middleware/checkUserInfo");
const { checkPermission } = require("../../config/acl");
module.exports = (router) => {
	router.get("/metas", checkUserInfo, checkPermission("list_meta"), MetaCtrl.list);
	router.post("/metas", checkUserInfo, checkPermission("create_meta") , MetaCtrl.create);
	router.put("/metas", checkUserInfo, checkPermission("create_meta"), MetaCtrl.update);
	router.delete("/metas/:ids", checkUserInfo, checkPermission("delete_meta") , MetaCtrl.del);
};